package com.shiro.distribution;


import org.apache.shiro.cache.AbstractCacheManager;
import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;

/**
 * 功能或描述：分布式缓存管理器
 *
 * @Package com.shiro.distribution
 * @Author: DR.YangLong
 * @Date: 14-9-30
 * @Time: 上午9:29
 * @Email: 410357434@163.com
 * @Version: 1.0
 * @Module: 修正:            日期：
 */
public class DistributeCacheManager extends AbstractCacheManager {
    /**
     * cache dao
     */
    private DistributeCacheRpository distributeCacheRpository;
    
    @Override
    protected Cache createCache(String name) throws CacheException {
        return new DistibuteCache(distributeCacheRpository,name);
    }

    public DistributeCacheRpository getDistributeCacheRpository() {
        return distributeCacheRpository;
    }

    public void setDistributeCacheRpository(DistributeCacheRpository distributeCacheRpository) {
        this.distributeCacheRpository = distributeCacheRpository;
    }
}
